<template>
  <div class="job-detail-container">
    <h3 class="title">{{ data.title }}</h3>
    <div class="time">{{ data.createTime | formatDate }}</div>
    <div class="content" v-html="data.content"></div>
    <div class="footer">
      <Button type="primary" @click="goBack" ghost>返回</Button>
    </div>
  </div>
</template>

<script>
export default {
  name: 'jobDetail',
  props: {
    type: {
      type: String,
      default: ''
    },
    data: {
      type: Object,
      default: {}
    }
  },
  methods: {
    goBack() {
      this.$router.go(-1)
    }
  }
}
</script>
